﻿// //  ********************************************************************************
// //  Copyright (C) 2016 Sebastian Kenter. All rights reserved.
// // 
// //  Name    : PhotonServerProject | PhotonServerCommon | HandlerTMap.cs
// //  Created : 2016 - 03 - 21 13:44
// //  Modified: 2016 - 04 - 18 09:38
// //  ********************************************************************************

using FluentNHibernate.Mapping;
using PhotonServerCommon.Entities.Domain;

namespace PhotonServerCommon.Entities.Mapping
{
    public class HandlerTMap : ClassMap<HandlerT>
    {
        public HandlerTMap()
        {
            Schema("mseconfig");
            Table("handler_t");
            Id(x => x.HandlerId).GeneratedBy.Assigned().Column("HandlerId");
            Map(x => x.ClientHandler).Column("ClientHandler").Not.Nullable();
            Map(x => x.ServerHandler).Column("ServerHandler").Not.Nullable();
            Map(x => x.HandlerType).Column("HandlerType").Not.Nullable();
            Map(x => x.HandlerCode).Column("HandlerCode").Not.Nullable();
            Map(x => x.HandlerSubCode).Column("HandlerSubCode");
            Map(x => x.ServerId).Column("ServerId").Not.Nullable();
            Map(x => x.ServerPeerId).Column("ServerPeerId").Not.Nullable();
            Map(x => x.Application).Column("Application").Not.Nullable();
            Map(x => x.DzIns).Column("DzIns").Not.Nullable();
            Map(x => x.DzUpd).Column("DzUpd").Not.Nullable();
            Map(x => x.NamUpd).Column("NamUpd").Not.Nullable();
            Map(x => x.Tsn).Column("Tsn").Not.Nullable();
        }
    }
}
